package com.itheima.reggie.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.reggie.dto.FindOrdersDto;
import com.itheima.reggie.dto.OrdersDto;
import com.itheima.reggie.entity.Orders;

import java.util.List;

public interface OrderService extends IService<Orders> {

    //下单
    void submit(Orders orders);

    //查看历史(最新)订单 -- 前台
    IPage<OrdersDto> getOrders(Integer page, Integer pageSize);

    //订单查询 -- 后台
    IPage<OrdersDto> findByPage(FindOrdersDto findOrdersDto);

    //后台订单派送
    void updateStatus(Orders orders);

    //再来一单
    void again(Orders orders);
}